package cn.zymall.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "store_fixed_advertising")
public class StoreFixedAdvertising extends BaseEntity implements Serializable {
    /**
     * 店铺固定广告id
     */
    @TableId(value = "STORE_FIXED_ADVERTISING_ID", type = IdType.AUTO)
    private Integer storeFixedAdvertisingId;

    /**
     * 图片url
     */
    @TableField(value = "IMAGE_PATH")
    private String imagePath;

    /**
     * 店铺id
     */
    @TableField(value = "STORE_ID")
    private Integer storeId;

    /**
     * 状态（0.草稿 1.审核中   2.使用中  3.失效 4.审核失败）
     */
    @TableField(value = "STORE_FIXED_ADVERTISING_STATUS")
    private Integer storeFixedAdvertisingStatus;

    /**
     * 创建时间
     */
    @TableField(value = "CREATION_TIME")
    private Date creationTime;

    /**
     * 审核通过时间
     */
    @TableField(value = "APPROVAL_TIME")
    private Date approvalTime;

    /**
     * 创建人
     */
    @TableField(value = "CREATE_BY")
    private Integer createBy;

    /**
     * 更新人
     */
    @TableField(value = "UPDATE_BY")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "UPDATE_TIME")
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_STORE_FIXED_ADVERTISING_ID = "STORE_FIXED_ADVERTISING_ID";

    public static final String COL_IMAGE_PATH = "IMAGE_PATH";

    public static final String COL_STORE_ID = "STORE_ID";

    public static final String COL_STORE_FIXED_ADVERTISING_STATUS = "STORE_FIXED_ADVERTISING_STATUS";

    public static final String COL_CREATION_TIME = "CREATION_TIME";

    public static final String COL_APPROVAL_TIME = "APPROVAL_TIME";

    public static final String COL_CREATE_BY = "CREATE_BY";

    public static final String COL_UPDATE_BY = "UPDATE_BY";

    public static final String COL_UPDATE_TIME = "UPDATE_TIME";
}